package com.accenture.adf.newcodington.module10.activity;

/**
 * Topic: Inheritance
 * 
 * Description :
 * 	Park class overrides the methods inherited from the interface RidesHosting
 * 	
 */

public class Park implements RidesHosting { //TODO 1 - implement RidesHosting interface

	private int parkRide=0;
			
	public void assignRideCategory() {
		// TODO 2 Assign low thrill to the parkRide variable.
		parkRide=RidesHosting.LOW_THRILL;
	}	
	/**
	 * Method for getting RIDEDETAILS based on the parkRide
	 */
	public String getRideDetails() 
	{	
		/* TODO 3 - Provide code to test parkRide and load "Low Thrill Rides for Children" into String variable rideDetails if parkRide=1
		 * 			and store value "High Thrill Rides for Teens and Adults" if parkRide = 2
		 */
		String rideDetails="";
		
		if(parkRide==1)
		{
			rideDetails="Low Thrill Rides for Children";
		}
		if(parkRide==2)
		{
			rideDetails="High Thrill Rides for Teens and Adults";
		}
	return rideDetails;		// TODO 4 - replace NULL with String variable "rideDetail" and  return from method.
	}	
}
